﻿@using PlatformNetCore.Entity;
@{
    Company company = ViewBag.CompanyInfo;
    List<Menu> menuList = ViewBag.MenuTopRight as List<Menu>;
}
<!DOCTYPE html>
<html class="no-js" lang="">
<head>
    <meta charset="utf-8">
    <title>@ViewBag.Title - @company.CompanyName</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="manifest" href="~/site.webmanifest">
    <link rel="apple-touch-icon" href="icon.png">
    <!-- Place favicon.ico in the root directory-->
    <meta name="theme-color" content="#fafafa">
    <link href="~/fonts/iconfont.css" rel="stylesheet">
    <link href="~/js/vendor/wow/css/libs/animate.css" rel="stylesheet">
    <link href="~/css/styles.min.css" rel="stylesheet">
    <script src="~/js/vendor/wow/dist/wow.min.js"></script>
    <script>new WOW().init();</script>
</head>
<body>
    <header class="site-header" id="site-header">
        <a class="logo" href="/"><img id="logo" src="/img/logo.png" alt="鼓润"></a>
        <div class="row align-items-center">
            <div class="col">
                <ul class="mainav">
                    @foreach (Menu item in menuList.Where(k => k.Level == 1).OrderBy(s => s.SortNo))
                    {
                        <li><a href="@item.Link" class="@(item.MenuCode.Equals(ViewBag.ParentCode)?"active":"")">@item.Title</a></li>
                    }
                </ul>
            </div>
            <div class="col-auto mobilemenu">
                <div class="menu-toggle">
                    <div class="one"></div>
                    <div class="two"></div>
                    <div class="three"></div>
                </div>
            </div>
            <div class="menu-over" id="overmenu">
                <ul class="mobilenav">
                    @foreach (Menu item in menuList.Where(k => k.Level == 1).OrderBy(s => s.SortNo))
                    {
                        <li><a href="@item.Link" class="@(item.MenuCode.Equals(ViewBag.ParentCode)?"active":"")">@item.Title</a></li>
                    }
                </ul>
            </div>
        </div>
    </header>
    @RenderBody()
    <footer class="site-footer" id="pagefooter">
        <div class="logo_bot wow fadeInRight"><img src="/img/logo_bot.png" alt="鼓润"></div>
        <div class="bottop wow fadeInUp">
            <div class="row justify-content-end">
                @foreach (Menu item in menuList.Where(k => k.Level == 1).OrderBy(s => s.SortNo))
                {
                    <div class="col-lg-auto">
                        <dl class="botnav">
                            <dt> <a href="@item.Link">@item.Title</a></dt>
                            @foreach (Menu sub in menuList.Where(s => s.ParentID == item.ID).OrderBy(k => k.SortNo))
                            {
                                <dd><a href="@sub.Link">@sub.Title</a></dd>
                            }
                        </dl>
                    </div>
                }
            </div>
        </div>
        <div class="bot">
            <div class="row">
                <div class="col-md">
                    <div class="copyright wow fadeInRight">&copy; copyright @DateTime.Now.Year 鼓润生物 版权所有</div>
                </div>
            </div>
        </div>
    </footer>
    <a class="toTop" id="toTop" href="javascript:void(0);"><i class="iconfont icon-top"></i></a>
    <script src="~/js/vendor/modernizr-3.8.0.min.js"></script>
    <script src="~/js/vendor/jquery-3.4.1.min.js"></script>
    <script src="~/js/vendor/jquery.easing.min.js"></script>
    <script src="~/js/bootstrap/bootstrap.min.js"></script>
    <script src="~/js/app.js"></script>
    @RenderSection("Scripts", required: false)
</body>
</html>
